package com.unione.heathrobot

import android.app.Application
import com.blankj.utilcode.util.LogUtils
import com.unione.unione_base.BaseApplication
import com.unione.unione_base.view.App
import com.unione.unione_base.view.AppViewModel

class HeathRobotApplication : BaseApplication() {

    companion object {
        lateinit var appViewModel: AppViewModel
        private lateinit var app: Application
        fun getContext(): Application {
            return app
        }
    }

    override fun onCreate() {
        super.onCreate()
        app = this
        appViewModel = getAppViewModelProvider().get(AppViewModel::class.java)
        LogUtils.getConfig().setLog2FileSwitch(true)
    }
}